package cn.tedu.goods.management.pojo.eneity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("goods")
public class Goods implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String goodsName;
    private Integer goodsNum;
    private BigDecimal goodsPrice;
    private String title;
    private String imgeUrl;
    private Integer salesCount;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;
}
